package com.woniuxy.ams.service.impl;

import com.woniuxy.ams.dao.CheckinfoDao;
import com.woniuxy.ams.entity.*;
import com.woniuxy.ams.service.CheckinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author susunxi
 * @version 1.0
 * @date 2021/12/15 11:36
 */
@Service
public class CheckinfoServiceImpl implements CheckinfoService {
    @Autowired(required = false)
    CheckinfoDao checkinfoDao;

    @Transactional(rollbackFor = Throwable.class)
    @Override
    public List<CheckInfoShowData> getAllPending(CheckInfoShowData user) {
        return checkinfoDao.getAllPending(user);
    }

    @Override
    public SelfAppraisal getPath(CheckInfoShowData checkInfoShowData) {
        return checkinfoDao.getPath(checkInfoShowData);
    }

}